from odoo import api, fields, models


# 引入odoo内置的板块

class Stock_allocation(models.Model):
    _name = 'stock.allocation'
    # 相当于给了此模型一个唯一id，之后很多地方需要用到
    _description = 'lingliaochuku information'
    # 商品编号
    merchandise_number = fields.Char(
        string='商品编号',
        required=True
    )
    # 商品名称
    merchandise_name = fields.Char(
        string='商品名称',
        required=True
    )
    # 领料数量
    merchandise_amount = fields.Integer(
        '领料数量',
        default=0,
        required=True
    )